﻿@{
    Layout = null;
}

<div class="AreaL2">
    <div class="box">
        <div class="box_1">
            <div class="userCenterBox">
                <div class="userMenu">
                    <h3><a href="/UserCenter/Index/">会员中心<b>-欢迎页</b></a></h3>
                    <div id="cate">
                        <h1 onclick="tab(0)">
                            <span>订单中心</span>
                            <img src="/Content/images/user_up.gif">
                        </h1>
                        <ul style="display:block">
                            <a href="/UserCenter/GetOrderByLogin/id"> 我的订单</a>
                            @*<a href="/UserCenter/GetCustomerOrderHistoryByLoginID/id">历史订单</a>*@
                        </ul>
                        <div style="clear:both"></div>
                        <h1 onclick="tab(1)">
                            <span>会员中心</span>
                            <img src="~/Content/images/user_up.gif">
                        </h1>
                        <ul style="display:block">
                            <a href="/UserCenter/ShowUserInfo">用户信息</a>
                            <a href="/UserCenter/ShowUserAddress"> 收货地址</a>
                            <a href="/UserCenter/GetFavoritesByLoginId"> 我的收藏</a>
                            <a href="/UserCenter/ComplaintList">  我的投诉</a>
                            <a href="/UserCenter/EvaluationList"> 我的评论</a>
                        </ul>
                        <div style="clear:both"></div>
                        <h1 onclick="tab(2)">
                            <span>账户中心 </span>
                            <img src="~/Content/images/user_up.gif">
                        </h1>
                        <ul style="display:block">
                            <a href="/UserCenter/GetCustomerMoneyByCustomerID/id"> 财务管理</a>
                        </ul>
                    </div>
                </div>
                <script type="text/javascript">
                    obj_h4 = document.getElementById("cate").getElementsByTagName("h4")
                    obj_ul = document.getElementById("cate").getElementsByTagName("ul")
                    obj_img = document.getElementById("cate").getElementsByTagName("img")
                    function tab(id) {
                        if (obj_ul.item(id).style.display == "block") {
                            obj_ul.item(id).style.display = "none"
                            obj_img.item(id).src = "~/Content/images/user_down.gif"
                            return false;
                        }
                        else (obj_ul.item(id).style.display == "none")
                        {
                            obj_ul.item(id).style.display = "block"
                            obj_img.item(id).src = "~/Content/images/user_up.gif"
                        }
                    }
                </script>
            </div>
        </div>
    </div>
</div>